package org.hxyjs.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Gamerecord implements Serializable {
    private String grno;

    private String gtno;

    private String ano;

    private String grstarttime;

    private String grstoptime;

    private String grdescribe;

    private Integer grstate;

    private static final long serialVersionUID = 1L;

    public String getGrno() {
        return grno;
    }

    public void setGrno(String grno) {
        this.grno = grno;
    }

    public String getGtno() {
        return gtno;
    }

    public void setGtno(String gtno) {
        this.gtno = gtno;
    }

    public String getAno() {
        return ano;
    }

    public void setAno(String ano) {
        this.ano = ano;
    }

    public String getGrstarttime() {
        return grstarttime;
    }

    public void setGrstarttime(String grstarttime) {
        this.grstarttime = grstarttime;
    }

    public String getGrstoptime() {
        return grstoptime;
    }

    public void setGrstoptime(String grstoptime) {
        this.grstoptime = grstoptime;
    }

    public String getGrdescribe() {
        return grdescribe;
    }

    public void setGrdescribe(String grdescribe) {
        this.grdescribe = grdescribe;
    }

    public Integer getGrstate() {
        return grstate;
    }

    public void setGrstate(Integer grstate) {
        this.grstate = grstate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Gamerecord other = (Gamerecord) that;
        return (this.getGrno() == null ? other.getGrno() == null : this.getGrno().equals(other.getGrno()))
            && (this.getGtno() == null ? other.getGtno() == null : this.getGtno().equals(other.getGtno()))
            && (this.getAno() == null ? other.getAno() == null : this.getAno().equals(other.getAno()))
            && (this.getGrstarttime() == null ? other.getGrstarttime() == null : this.getGrstarttime().equals(other.getGrstarttime()))
            && (this.getGrstoptime() == null ? other.getGrstoptime() == null : this.getGrstoptime().equals(other.getGrstoptime()))
            && (this.getGrdescribe() == null ? other.getGrdescribe() == null : this.getGrdescribe().equals(other.getGrdescribe()))
            && (this.getGrstate() == null ? other.getGrstate() == null : this.getGrstate().equals(other.getGrstate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getGrno() == null) ? 0 : getGrno().hashCode());
        result = prime * result + ((getGtno() == null) ? 0 : getGtno().hashCode());
        result = prime * result + ((getAno() == null) ? 0 : getAno().hashCode());
        result = prime * result + ((getGrstarttime() == null) ? 0 : getGrstarttime().hashCode());
        result = prime * result + ((getGrstoptime() == null) ? 0 : getGrstoptime().hashCode());
        result = prime * result + ((getGrdescribe() == null) ? 0 : getGrdescribe().hashCode());
        result = prime * result + ((getGrstate() == null) ? 0 : getGrstate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", grno=").append(grno);
        sb.append(", gtno=").append(gtno);
        sb.append(", ano=").append(ano);
        sb.append(", grstarttime=").append(grstarttime);
        sb.append(", grstoptime=").append(grstoptime);
        sb.append(", grdescribe=").append(grdescribe);
        sb.append(", grstate=").append(grstate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}